#include "FloatToVector3Controller.h"

FloatToVector3Controller::FloatToVector3Controller()
//:_x((Source<float>*)this, 0), _y((Source<float>*)this, 0), _z((Source<float>*)this, 0)
//the cast is ugly, need to find a better solution
{
	//initialise the parameters
	_x.init(this, 0);
	_y.init(this, 0);
	_z.init(this, 0);

	//register the parameters
	registerDependent(&_x);
	registerDependent(&_y);
	registerDependent(&_z);
}

FloatToVector3Controller::~FloatToVector3Controller(){}

void FloatToVector3Controller::doUpdate()
{
	setValue(CVector3f(_x, _y, _z));
}